<html>
<head>
    <style>
        #box {
            position: relative;
            height: 100px;
            width: 100px;
            margin: 20px;
            background-color: red;
            animation:
                horizontal 2s ease-in 1 alternate,
                vertical 2s ease-out 1 alternate;
        }

        @keyframes horizontal {
            from { left: 0px;   }
            to   { left: 200px; }
        }

        @keyframes vertical {
            from { top: 0px;   }
            to   { top: 200px; }
        }
    </style>
    <script src="../resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
        const expectedValues = [
          // [time, element-id, property, expected-value, tolerance]
          [0.5, "box", "left", 18, 10],
          [1.5, "box", "left", 124, 10],
          [0.5, "box", "top", 75, 10],
          [1.5, "box", "top", 181, 10],
        ];

        runAnimationTest(expectedValues);
    </script>
</head>
<body>
    <div id="box"></div>
    <div id="result"></div>
</body>
</html>
